'use strict';

/* App Module */

var iswitchApp = angular.module('iswitchApp', [
  'ngRoute',
  'iswitchAnimations',
  'iswitchControllers',
  'iswitchFilters',
  'iswitchServices'
]);

iswitchApp.config(['$routeProvider',
  function($routeProvider) {
    $routeProvider.
      when('/directories', {
        templateUrl: 'partials/directory_list.htm',
        controller: 'directoryListCtrl'
      }).
      when('/directories/:phoneId', {
        templateUrl: 'partials/directory_detail.htm',
        controller: 'directoryDetailCtrl'
      }).
      otherwise({
        redirectTo: '/directories'
      });
  }]);
